﻿using Microsoft.AspNetCore.Mvc;
using RuoVea.Gantt.AuthorizeEx;

namespace RuoVea.Gantt.Controllers
{
    [Authorize]
    public class TestController :  Controller
    {
    
        public async Task<IActionResult> IndexAsync()
        {
            var data =  HttpContext.User;
 
            if (data.Identity.IsAuthenticated == false)
            {
                //HttpContext.Response.Redirect("https://baidu.com");
            }
            return View();
        }
    }
}
